import request from '@/api/Interceptor'//导入已经写好的拦截器
    
    // 封装所有的API接口
    
    export function Login(params){
    return request({
        url:'/category/head',
        method :'post',
        params:params,
    })
    }
    
    export function getRoles(params={}){
    return request({
        url:'/Roles/select',
        method :'post',
        params:params,
    })
    }